package com.yihuier.yihuier.Service.Common;

import com.yihuier.yihuier.Mapper.Common.FileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class FileService {

    @Autowired
    FileMapper fileMapper;

    /**
     *获得会议文件地址
     */
    public Map<String,String> getDataAddressAndName(int data_id){
        return fileMapper.selectDataAddressAndName(data_id);
    }

    /**
     * 给安卓传递文件url，为文件下载做准备
     * */
    public String getFileUrlForAndroid(int data_id){
        return fileMapper.selectFileUrlForAndroid(data_id);
    }
}
